<template name="data-v-b33d9c3a-default-1">
    <view class="_div data-v-b33d9c3a body">
        <view class="_div data-v-b33d9c3a search">
            <view bindtap="handleProxy" class="_i data-v-b33d9c3a input" >{{keyword}}</view>
            <label bindtap="handleProxy" class="_span data-v-b33d9c3a" >取消</label>
            <image alt class="_img data-v-b33d9c3a" src="@/static/app_image/search_icon1.png"></image>
            <view class="_p data-v-b33d9c3a">共<text class="_text data-v-b33d9c3a">{{total||0}}</text>条，为您展示<text class="_text data-v-b33d9c3a">{{resultData.length>50?50:resultData.length}}</text>条，请尝试精确搜索</view>
        </view>
        <view class="_ul data-v-b33d9c3a result">
            <view bindtap="handleProxy" class="_li data-v-b33d9c3a"  v-for="item in resultData" >
                <view class="_div data-v-b33d9c3a title">
                    <view class="_h3 data-v-b33d9c3a">
                        <rich-text class="_span data-v-b33d9c3a" nodes="item.name"></rich-text>
                    </view>
                    <view class="_h3 data-v-b33d9c3a">item.book</view>
                </view>
                <view class="_p data-v-b33d9c3a" v-if="searchType==2">
                    <rich-text class="_span data-v-b33d9c3a" nodes="item.compositions1"></rich-text>
                </view>
                <view class="_p data-v-b33d9c3a" v-else>
                    <label class="_span data-v-b33d9c3a"></label>
                </view>
            </view>
        </view>
        <view class="_p data-v-b33d9c3a nothing" v-if="showNothing">暂无搜索结果</view>
    </view>
</template>
<script>
	export default {
		data() {
			return {
				keyword:"",
				total:"",
				showNothing:1,
				resultData:[]
			};
		}
	}
	
</script>
<style lang="scss">
	@import "./container.css";
</style>
